#1.设置可执行文件名称
set(EXECTUABL_NAME opencvDemo)

#2.搜索.cpp源文件
file(GLOB SOURCES src/*.cpp)

#3.
add_executable(${EXECTUABL_NAME} main.cpp ${SOURCES})
include_directories(include)

set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

# 查找OpenCV库
set(OpenCV_DIR ${EXTERNAL_LIB_DIR}/opencv2)
find_package(OpenCV REQUIRED)

# 将外部库的静态库文件目录添加到链接路径，方便后续链接操作
target_link_libraries(${EXECTUABL_NAME}  
    character_module
    map_module
    spdlog
    ${OpenCV_LIBS}
    onnxruntime
)

